<div id="sendBox">
	
	<form name="sendMail" novalidate ng-submit="sendEmail()">
		<div class="form-group clearfix">
			<label for="receiveName" class="pull-left">收件人</label>
			<div class="pull-left"  style="width:300px;">
				<ui-select ng-model="students.selected" on-select="select()">
					<ui-select-match placeholder="选择收件人">
						<span ng-bind="$select.selected.name"></span>
					</ui-select-match>
					<ui-select-choices repeat="student in (students | filter:$select.search) track by student.id">
						<span ng-bind="student.name"></span>
					</ui-select-choices>
				</ui-select>
			</div>
			<input  type="hidden" name="targetId" value="{{students.selected.id}}">
		</div>
		<div class="form-group clearfix">
			<label for="emailTitle" class="pull-left">标题</label>
			<input type="text"  name="title" placeholder="请输入邮件标题" ng-model="mailTitle" class="form-control pull-left" id="emailTitle" required>
		</div>
		<div class="form-group">
			<label for="emailContent" class="pull-left">内容</label>
			<textarea class="form-control pull-left" name="content" id="emailContent" rows="" cols="" placeholder="请输入邮件内容"></textarea>
		</div>
		<div class="form-group">
			<button  type="submit"  class="btn">发送邮件</button>
		</div>
	</form>
</div>
